import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询 /ttVsTestDirve/page
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirve/auditQuery`, params)


// 详情  /ttVsDaily/selectOne
export const queryById = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirve/auditDetailQuery?id=${id}`)
// 操作记录
export const queryRecordById = (id) => axios.get(`${SERVER.RETAIL}/wholesales_1_1/vsTestDirveLog/selecetByDirveId?dirveId=${id}`)

// 保存 提交 /ttVsTestDirve/saveOne
export const saveData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirve/saveOne`, params)

// 通过 驳回 /ttVsTestDirve/testDriveReview
export const reviewData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirve/testDriveReview`, params)

// 批量删除  /ttVsTestDirve/delList
export const delById = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirve/delList`, params)

//  查车 /vehicle/listTestDriverInfo
export const VINInfo = (params) => axios.post(`${SERVER.RETAIL}/vehicle/listTestDriverInfo`, params)
